package com.besttone.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;
/**
 * Created by zhengzhenzhen on 2017/4/18.
 * http://ip:port/index/1
 */
@RestController
@RequestMapping("/index")
public class HelloController {
    @RequestMapping("/{id}")
    public String index(@PathVariable("id") String id)
    {
        return id;
    }
}